
#include "nds/sdat.h"
#include <stdexcept>

using namespace std;


int main(int argc, char *argv[]) {

	nds::sdat sdat;
	
	cout << "\tNDS-SDAT by Eric Eveleigh" << endl;

	if(argc!=2) {
		cout << "\tNo file specified." << endl;
		return 1;
	}

	try {
		sdat.loadFromRom(string(argv[1]));
	}
	catch(nds::ndsexcept e) {
		cerr << "Exception: " << e.what() << endl;
		return 1;
	}
	return 0;
}

